Skip to content

fix: Back to home href on dashboard error pages in preview mode#9268

Merged
royendo merged 1 commit intomainfrom
royendo/fix-back-to-home-preview-to-developer
Apr 21, 2026
Merged

fix: Back to home href on dashboard error pages in preview mode#9268
royendo merged 1 commit intomainfrom
royendo/fix-back-to-home-preview-to-developer

Conversation

@royendo
Copy link
Copy Markdown
Contributor

@royendo royendo commented Apr 20, 2026

  • The Back to home button on ErrorPage instances in the web-local explore and canvas pages defaulted to /, which is the developer-mode home. In preview mode the home is /dashboards, so users landed in developer mode after errors like Error building dashboard.
  • Derive the href from previewModeStore on both pages, matching the pattern already used in +error.svelte.

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

Developed in collaboration with Claude Code

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@royendo royendo requested a review from AdityaHegde April 20, 2026 21:04
@AdityaHegde AdityaHegde mentioned this pull request Apr 21, 2026
8 tasks
@royendo royendo merged commit f168a36 into main Apr 21, 2026
14 of 15 checks passed
@royendo royendo deleted the royendo/fix-back-to-home-preview-to-developer branch April 21, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants